<template>
	<view>
		<view>
			<u-gap height="20" bg-color="white"></u-gap>
		</view>
		<view>
			<u-table>
				<u-tr>
					<u-th>用户名</u-th>
					<u-th>真实姓名</u-th>
					<u-th>手机号</u-th>
				</u-tr>
				<view v-for="(item, index) in userList" :key="index">
					<u-tr>
						<u-td>{{item.userName}}</u-td>
						<u-td>{{item.realName}}</u-td>
						<u-td>{{item.phone}}</u-td>
					</u-tr>
				</view>
			</u-table>
		</view>
		<view>
			<u-gap height="20" bg-color="white"></u-gap>
			<u-divider>---没有更多了---</u-divider>
		</view>
	</view>
</template>

<script>
	import api from "../../utils/api.js"
	export default {
		data() {
			return {
				userList:[]
			}
		},
		created(){
			var branchId = uni.getStorageSync("user").branchId
			console.log(branchId)
			api.checkUsersInfo(branchId).then(res=>{
				this.userList = res.data.list
				console.log(this.userList)
			})
		},
		methods: {
			
		}
	}
</script>

<style>

</style>
